home *** CD-ROM | disk | FTP | other *** search
- Path: connix.com!news
- From: Scott Hawley <shawley@connix.com>
- Newsgroups: comp.lang.c
- Subject: What's better & why
- Date: Mon, 19 Feb 1996 23:46:34 -0800
- Organization: SHAWLEY SYSTEMS
- Message-ID: <31297C5A.E6C@connix.com>
- NNTP-Posting-Host: shawley.connix.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I was just curious what you all though about the following code.
- Please tell me what is better (faster/Smaller) and why. Or does it make
- any difference at all. I just though about this while I was programming
- today?
-
- example 1:
- val = 1;
- if( what ever...)val = 0;
-
- or
- example 2:
- if( what ever... )val = 0;
- else val = 1;
-
- amy remarks?
-